package com.eva.dao.cms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eva.dao.cms.model.CmsArticle;
import com.eva.service.cms.vo.CmsArticleDetailVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface CmsArticleMapper extends BaseMapper<CmsArticle> {

    /**
     * 查询文章详情
     *
     * @param uid 唯一标识
     * @param status 发布状态
     * @return CmsArticleDetailVO
     */
    CmsArticleDetailVO selectDetail(@Param("uid") String uid, @Param("status") String status);
}
